import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/home/tab_profile/function_button_data.dart';
import 'package:flutter_shop/pages/home/tab_profile/hearer.dart';

class TabProfile extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        title: Text('我的'),
        actions: [
          IconButton(
              icon: Icon(Icons.settings),
              onPressed: () {
                Navigator.of(context).pushNamed('settings');
              })
        ],
      ),
      body: ListView(
        children: [Header(), ButtonData()],
      ),
    );
  }
}
